package uc;

import co.chuangdian.oflauncher.OFActivity;
import co.chuangdian.oflauncher.R;
import android.content.pm.ActivityInfo;
import android.net.Uri;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.MediaController;
import android.widget.VideoView;
import cn.onekit.android.ACTIVITY;

public class VideoPlayActivity extends OFActivity {
	private VideoView videoview;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO 自动生成的方法存根
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.setting_feature_video);
		String url = this.getIntent().getStringExtra("url");
		videoview=(VideoView) findViewById(R.id.videoView);
		this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
		videoview.setVideoURI(Uri.parse(url));
		videoview.setMediaController(new MediaController(this));
		videoview.start();
	}
}
